
import request from '@/utils/request'

// 列表	GET cm/adm/v1/guide/lis
export function getGuideList(params) {
  return request({
    url: `/adm/v1/guide/list`,
    method: 'get',
    params,
  })
}
// 根据id获取详情	GET cm/adm/v1/guide/details/2
export function getGuideDetail(id) {
  return request({
    url: `/adm/v1/guide/details/${id}`,
    method: 'get',
  })
}
// 删除	DELETE w/adm/v1/guide/2
export function deleteGuide(id) {
  return request({
    url: `/adm/v1/guide/${id}`,
    method: 'delete',
  })
}
// 编辑一组引导图	PUT cm/adm/v1/guide/edit
export function editGuide(data) {
  return request({
    url: `/adm/v1/guide/edit`,
    method: 'put',
    data,
  })
}
// 添加一组引导图数据	POST cm/adm/v1/guide/add
export function addGuide(data) {
  return request({
    url: `/adm/v1/guide/add`,
    method: 'post',
    data,
  })
}